 
package com.xbongbong.paas.domain.entity;

import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
* @author autoGen
* @time 2018-08-13 10:43:26
*/
@Setter
@Getter
@ToString
public class PaasPrintTemplateEntity extends Entity {

	/** Comment for <code>serialVersionUID</code> */
	private static final long serialVersionUID = -4968930413341036363L;

	//========== properties ==========
	
	/**
	* 主键
	*/
	private Long id;
	/**
	* 提交该应用的公司id，若为0则为本公司(逍邦网络)维护的应用模板
	*/
	private String corpid;
	/**
	* 对应的应用表id
	*/
	private Long appId;
	/**
	 * 菜单id
	 */
	private Long menuId;
	/**
	* 表单模板id
	*/
	private Long formId;
	/**
	* 打印模板名称
	*/
	private String name;
	/**
	* 是否为当前启用模板（1是，0否）
	*/
	private Integer enable;
	/**
	* 前端传过来的页面信息
	*/
	private String html;
	/**
	* 一些打印配置信息如"间距"，json格式
	*/
	private String configInfo;
    /**
     * 业务类型
     */
	private Integer businessType;

	/**
	* 创建者id
	*/
	private String creatorId;
	/**
	* 创建时间时间戳
	*/
	private Long addTime;
	/**
	* 更新时间时间戳
	*/
	private Long updateTime;
	/**
	* 删除标记
	*/
	private Integer del;
	/**
	 * 经销商模板标识
	 */
	private Integer distributorMark;
	/**
	 * 应用场景
	 * @see com.xbongbong.pro.enums.PrintSceneTypeEnum
	 */
	private Integer sceneType;
	/**
	 * 排序值
	 */
	private Integer sort;

	public PaasPrintTemplateEntity(){
		del = 0;
	}

	public PaasPrintTemplateEntity(String name, String corpid, Long appId, Long menuId, Long formId, String creatorId,
								   Long addTime, Long updateTime, Integer businessType, String html, String configInfo) {
		this.name = name;
		this.corpid = corpid;
		this.appId = appId;
		this.menuId = menuId;
		this.formId = formId;
		this.creatorId = creatorId;
		this.addTime = addTime;
		this.updateTime = updateTime;
		this.businessType = businessType;
		this.html = html;
		this.configInfo = configInfo;
		this.del = 0;
	}

	public PaasPrintTemplateEntity(String corpid, Long appId, Long menuId, Long formId, String name, Integer enable, String html, String configInfo, Integer businessType, String creatorId, Long addTime, Long updateTime, Integer del) {
		this.corpid = corpid;
		this.appId = appId;
		this.menuId = menuId;
		this.formId = formId;
		this.name = name;
		this.enable = enable;
		this.html = html;
		this.configInfo = configInfo;
		this.businessType = businessType;
		this.creatorId = creatorId;
		this.addTime = addTime;
		this.updateTime = updateTime;
		this.del = del;
	}
}

